ci: use libostree from unstable
authorFelix Krull <f_krull@gmx.de>
Wed, 28 Aug 2019 19:31:57 +0000 (21:31 +0200)
committerColin Walters <walters@verbum.org>
Fri, 6 May 2022 16:53:54 +0000 (12:53 -0400)
rust-bindings/rust/.gitlab-ci.yml

index 6d04d7ad0f83b5bafb8d63c4928ba77cbfff0084..a863ac3dcb69877360f8a9cc8322b480f7b3cb9b 100644 (file)
@@ -8,9 +8,15 @@ variables:
   RUSTC_WRAPPER: sccache
 
 before_script:
-# TODO: use libostree from unstable
+- echo deb https://deb.debian.org/debian unstable main > /etc/apt/sources.list.d/unstable.list
+- |
+    cat > /etc/apt/preferences.d/pin <<EOF
+    Package: *
+    Pin: release a=unstable
+    Pin-Priority: -999
+    EOF
 - apt-get update
-- apt-get install -y libostree-dev
+- apt-get install -y -t unstable libostree-dev
 - wget -O - ${SCCACHE_URL} | tar -C /usr/bin/ -xz --wildcards --strip-components=1 '*/sccache'
 
 cache:
@@ -33,26 +39,18 @@ check:
   - git diff -R --exit-code
 
 # build
-.build-step: &build-step
+all_features:
   stage: build
   script:
   - rustup component add clippy
-  - cargo clippy --all ${FEATURES} -- -D warnings
-  - cargo test --verbose --manifest-path sys/Cargo.toml ${SYS_FEATURES}
-  - cargo test --verbose ${FEATURES}
+  - cargo clippy --all --all-features -- -D warnings
+  - cargo test --verbose --manifest-path sys/Cargo.toml --all-features
+  - cargo test --verbose --all-features
 
-ostree:
-  <<: *build-step
-  variables:
-    # TODO: update
-    SYS_FEATURES: --features v2018_9
-    FEATURES: --features v2018_9,futures
-
-ostree_default-features:
-  <<: *build-step
-  variables:
-    SYS_FEATURES: ""
-    FEATURES: ""
+default-features:
+  stage: build
+  script:
+  - cargo test --verbose
 
 # docs
 docs: